package Q1;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int num = scanner.nextInt();
        String str = num + "";

        char[] ch = str.toCharArray();
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < ch.length; i++) {
            if ((ch[i] - '0') % 2 == 0) {
                //偶数
                stringBuilder.append('0');
            } else {
                //奇数
                stringBuilder.append('1');
            }
        }

        System.out.println(Integer.parseInt(stringBuilder.toString()));
    }
}
